import com.course.dto.PageBean;
import com.course.server.StuService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@Slf4j
@SpringBootTest
public class testname {
    @Resource
    private StuService stuService;

    @Test
    public void testFindByName(){
        List<PageBean> result = (List<PageBean>) stuService.page(1,10,null,"白");
        log.info("结果是:{}",result);
    }
}
